home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
clearb.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-11-06
|
656b
|
26 lines
#include <dos.h>
main()
{
struct find_t c_file;
struct dosdate_t date;
unsigned int today;
_dos_getdate(&date);
today=((date.year-1980)*512)+(date.month*32)+date.day;
if (_dos_findfirst ("m?m.bat",_A_NORMAL, &c_file)==0)
{
if (today-c_file.wr_date > 1) remove(c_file.name);
while (_dos_findnext(&c_file)==0)
if (today-c_file.wr_date > 1) remove(c_file.name);
}
if (_dos_findfirst ("m??m.bat",_A_NORMAL, &c_file)==0)
{
if (today-c_file.wr_date > 1) remove(c_file.name);
while (_dos_findnext(&c_file)==0)
if (today-c_file.wr_date > 1) remove(c_file.name);
}
}